<template>
  <div class="person">
    <h1>小狗图片</h1>
    <img v-for="(dog,index) in dogs" :src="dog" :key="index">
    <hr>
    <br>
    <button @click="getDog">在获取一张修狗图片</button>
  </div>
</template>

<script lang="ts" setup>
  import useDog from "@/hooks/useDog.ts";
  let {dogs,getDog} = useDog();
</script>

<style scoped>
.person{
  background-color: skyblue;
  box-shadow: 0 0 10px;
  border-radius: 10px;
  padding: 20px;
}
</style>
